﻿// MT567




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT567 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagChoiceDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSequenceDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagChoiceDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSequenceDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagDefinition U0091;
    private static SwiftTagSubItemDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagSequenceDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagSubItemDefinition U009E;
    private static SwiftTagDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagSequenceDefinition U0006U0002;
    private static SwiftTagDefinition U0007U0002;
    private static SwiftTagSubItemDefinition U0008U0002;
    private static SwiftTagDefinition U000EU0002;
    private static SwiftTagSubItemDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagChoiceDefinition U0011U0002;
    private static SwiftTagDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagDefinition U0015U0002;
    private static SwiftTagSubItemDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagSubItemDefinition U0018U0002;
    private static SwiftTagChoiceDefinition U0019U0002;
    private static SwiftTagDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagDefinition U001DU0002;
    private static SwiftTagSubItemDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagChoiceDefinition U0080U0002;
    private static SwiftTagDefinition U0081U0002;
    private static SwiftTagSubItemDefinition U0082U0002;
    private static SwiftTagSubItemDefinition U0083U0002;
    private static SwiftTagDefinition U0084U0002;
    private static SwiftTagSubItemDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagChoiceDefinition U0088U0002;
    private static SwiftTagDefinition U0089U0002;
    private static SwiftTagSubItemDefinition U008AU0002;
    private static SwiftTagSubItemDefinition U008BU0002;
    private static SwiftTagSubItemDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagSubItemDefinition U008EU0002;
    private static SwiftTagDefinition U008FU0002;
    private static SwiftTagSubItemDefinition U0090U0002;
    private static SwiftTagSubItemDefinition U0091U0002;
    private static SwiftTagDefinition U0092U0002;
    private static SwiftTagSubItemDefinition U0093U0002;
    private static SwiftTagSubItemDefinition U0094U0002;
    private static SwiftTagSubItemDefinition U0095U0002;
    private static SwiftTagSubItemDefinition U0096U0002;
    private static SwiftTagDefinition U0097U0002;
    private static SwiftTagSubItemDefinition U0098U0002;
    private static SwiftTagSubItemDefinition U0099U0002;
    private static SwiftTagSubItemDefinition U009AU0002;
    private static SwiftTagDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagSubItemDefinition U009DU0002;
    private static SwiftTagSubItemDefinition U009EU0002;
    private static SwiftTagSubItemDefinition U009FU0002;
    private static SwiftTagDefinition U0001U0003;
    private static SwiftTagSubItemDefinition U0002U0003;
    private static SwiftTagSubItemDefinition U0003U0003;
    private static SwiftTagSubItemDefinition U0004U0003;
    private static SwiftTagSubItemDefinition U0005U0003;
    private static SwiftTagDefinition U0006U0003;
    private static SwiftTagSubItemDefinition U0007U0003;
    private static SwiftTagSubItemDefinition U0008U0003;
    private static SwiftTagSubItemDefinition U000EU0003;
    private static SwiftTagSubItemDefinition U000FU0003;
    private static SwiftTagDefinition U0010U0003;
    private static SwiftTagSubItemDefinition U0011U0003;
    private static SwiftTagSequenceDefinition U0012U0003;
    private static SwiftTagDefinition U0013U0003;
    private static SwiftTagSubItemDefinition U0014U0003;
    private static SwiftTagDefinition U0015U0003;
    private static SwiftTagSubItemDefinition U0016U0003;
    private static SwiftTagSubItemDefinition U0017U0003;
    private static SwiftTagChoiceDefinition U0018U0003;
    private static SwiftTagDefinition U0019U0003;
    private static SwiftTagSubItemDefinition U001AU0003;
    private static SwiftTagSubItemDefinition U001BU0003;
    private static SwiftTagDefinition U001CU0003;
    private static SwiftTagSubItemDefinition U001DU0003;
    private static SwiftTagSubItemDefinition U001EU0003;
    private static SwiftTagSubItemDefinition U001FU0003;
    private static SwiftTagDefinition U007FU0003;
    private static SwiftTagSubItemDefinition U0080U0003;
    private static SwiftTagSubItemDefinition U0081U0003;
    private static SwiftTagDefinition U0082U0003;
    private static SwiftTagSubItemDefinition U0083U0003;

    [Description("General Information")]
    public MT567.SequenceAClass SequenceA
    {
      get
      {
        return new MT567.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Corporate Action Details")]
    public MT567.SequenceBClass SequenceB
    {
      get
      {
        MT567.SequenceBClass sequenceBclass = new MT567.SequenceBClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceBclass).Count > 0)
          return sequenceBclass;
        else
          return (MT567.SequenceBClass) null;
      }
    }

    [Description("Additional Information")]
    public MT567.SequenceCClass SequenceC
    {
      get
      {
        MT567.SequenceCClass sequenceCclass = new MT567.SequenceCClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceCclass).Count > 0)
          return sequenceCclass;
        else
          return (MT567.SequenceCClass) null;
      }
    }

    public MT567()
      : base(true)
    {
    }

    public MT567(SwiftMessage message)
      : base(message)
    {
    }

    public MT567.SequenceBClass AddSequenceB()
    {
      return this.SequenceB ?? new MT567.SequenceBClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceB(MT567.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT567.SequenceCClass AddSequenceC()
    {
      return this.SequenceC ?? new MT567.SequenceCClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceC(MT567.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT567.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT567.MessageDefinition = new SwiftMessageDefinition("MT567", "Corporate Action Status and Processing Advice");
      MT567.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT567.U0003 = new SwiftTagDefinition("StartOfBlock_A_16R", "Start Of Block");
      MT567.U0003.TagName = ":16R:GENL";
      MT567.U0004 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U0004.Mandatory = false;
      MT567.U0003.Elements.Add((SwiftDefinitionElement) MT567.U0004);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0003);
      MT567.U0005 = new SwiftTagDefinition("Reference_A_20C", "Reference");
      MT567.U0005.TagName = ":20C::";
      MT567.U0005.Multiple = true;
      MT567.U0006 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0005.Elements.Add((SwiftDefinitionElement) MT567.U0006);
      MT567.U0007 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT567.U0005.Elements.Add((SwiftDefinitionElement) MT567.U0007);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0005);
      MT567.U0008 = new SwiftTagDefinition("FunctionOfTheMessage_A_23G", "Function of the Message");
      MT567.U0008.TagName = ":23G:";
      MT567.U000E = new SwiftTagSubItemDefinition("Function", "Function");
      MT567.U0008.Elements.Add((SwiftDefinitionElement) MT567.U000E);
      MT567.U000F = new SwiftTagSubItemDefinition("Subfunction", "Subfunction");
      MT567.U000F.Mandatory = false;
      MT567.U0010 = new SwiftTagSubItemDefinition("Subfunction_1", "Sub Function");
      MT567.U000F.Elements.Add((SwiftDefinitionElement) MT567.U0010);
      MT567.U0008.Elements.Add((SwiftDefinitionElement) MT567.U000F);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0008);
      MT567.U0011 = new SwiftTagDefinition("Indicator_A_22F", "Corporate Action Event Indicator");
      MT567.U0011.TagName = ":22F::";
      MT567.U0012 = new SwiftTagSubItemDefinition("Qualifier", "");
      MT567.U0011.Elements.Add((SwiftDefinitionElement) MT567.U0012);
      MT567.U0013 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0011.Elements.Add((SwiftDefinitionElement) MT567.U0013);
      MT567.U0014 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT567.U0011.Elements.Add((SwiftDefinitionElement) MT567.U0014);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0011);
      MT567.U0015 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0015.Mandatory = false;
      MT567.U0015.Multiple = true;
      MT567.U0016 = new SwiftTagDefinition("Date_A_98A", "Preparation Date");
      MT567.U0016.TagName = ":98A::";
      MT567.U0017 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0016.Elements.Add((SwiftDefinitionElement) MT567.U0017);
      MT567.U0018 = new SwiftTagSubItemDefinition("Date", "Date");
      MT567.U0016.Elements.Add((SwiftDefinitionElement) MT567.U0018);
      MT567.U0015.Elements.Add((SwiftDefinitionElement) MT567.U0016);
      MT567.U0019 = new SwiftTagDefinition("DateTime_A_98C", "Preparation Date/Time");
      MT567.U0019.TagName = ":98C::";
      MT567.U001A = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0019.Elements.Add((SwiftDefinitionElement) MT567.U001A);
      MT567.U001B = new SwiftTagSubItemDefinition("DateTime", "Date and Time");
      MT567.U001C = new SwiftTagSubItemDefinition("Date", "Date");
      MT567.U001B.Elements.Add((SwiftDefinitionElement) MT567.U001C);
      MT567.U001D = new SwiftTagSubItemDefinition("Time", "Time");
      MT567.U001B.Elements.Add((SwiftDefinitionElement) MT567.U001D);
      MT567.U0019.Elements.Add((SwiftDefinitionElement) MT567.U001B);
      MT567.U0015.Elements.Add((SwiftDefinitionElement) MT567.U0019);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0015);
      MT567.U001E = new SwiftTagSequenceDefinition("SequenceA1", "Linkages");
      MT567.U001E.Multiple = true;
      MT567.U001F = new SwiftTagDefinition("StartOfBlock_A1_16R", "Start Of Block");
      MT567.U001F.TagName = ":16R:LINK";
      MT567.U007F = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U007F.Mandatory = false;
      MT567.U001F.Elements.Add((SwiftDefinitionElement) MT567.U007F);
      MT567.U001E.Elements.Add((SwiftDefinitionElement) MT567.U001F);
      MT567.U0080 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0080.Mandatory = false;
      MT567.U0080.Multiple = true;
      MT567.U0081 = new SwiftTagDefinition("NumberIdentification_A1_13A", "Linked Message");
      MT567.U0081.TagName = ":13A::";
      MT567.U0082 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0081.Elements.Add((SwiftDefinitionElement) MT567.U0082);
      MT567.U0083 = new SwiftTagSubItemDefinition("NumberId", "Number Id");
      MT567.U0081.Elements.Add((SwiftDefinitionElement) MT567.U0083);
      MT567.U0080.Elements.Add((SwiftDefinitionElement) MT567.U0081);
      MT567.U0084 = new SwiftTagDefinition("NumberIdentification_A1_13B", "Linked Message");
      MT567.U0084.TagName = ":13B::";
      MT567.U0086 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0084.Elements.Add((SwiftDefinitionElement) MT567.U0086);
      MT567.U0087 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0084.Elements.Add((SwiftDefinitionElement) MT567.U0087);
      MT567.U0088 = new SwiftTagSubItemDefinition("Number_13B", "Number");
      MT567.U0084.Elements.Add((SwiftDefinitionElement) MT567.U0088);
      MT567.U0080.Elements.Add((SwiftDefinitionElement) MT567.U0084);
      MT567.U001E.Elements.Add((SwiftDefinitionElement) MT567.U0080);
      MT567.U0089 = new SwiftTagDefinition("Reference_A1_20C", "Reference");
      MT567.U0089.TagName = ":20C::";
      MT567.U008A = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0089.Elements.Add((SwiftDefinitionElement) MT567.U008A);
      MT567.U008B = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT567.U0089.Elements.Add((SwiftDefinitionElement) MT567.U008B);
      MT567.U001E.Elements.Add((SwiftDefinitionElement) MT567.U0089);
      MT567.U008C = new SwiftTagDefinition("EndOfBlock_A1_16S", "End Of Block");
      MT567.U008C.TagName = ":16S:LINK";
      MT567.U008D = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U008D.Mandatory = false;
      MT567.U008C.Elements.Add((SwiftDefinitionElement) MT567.U008D);
      MT567.U001E.Elements.Add((SwiftDefinitionElement) MT567.U008C);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U001E);
      MT567.U008E = new SwiftTagSequenceDefinition("SequenceA2", "Status");
      MT567.U008E.Multiple = true;
      MT567.U008F = new SwiftTagDefinition("StartOfBlock_A2_16R", "Start Of Block");
      MT567.U008F.TagName = ":16R:STAT";
      MT567.U0090 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U0090.Mandatory = false;
      MT567.U008F.Elements.Add((SwiftDefinitionElement) MT567.U0090);
      MT567.U008E.Elements.Add((SwiftDefinitionElement) MT567.U008F);
      MT567.U0091 = new SwiftTagDefinition("StatusCode_A2_25D", "Status Code");
      MT567.U0091.TagName = ":25D::";
      MT567.U0092 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0091.Elements.Add((SwiftDefinitionElement) MT567.U0092);
      MT567.U0093 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0091.Elements.Add((SwiftDefinitionElement) MT567.U0093);
      MT567.U0094 = new SwiftTagSubItemDefinition("StatusCode", "Status Code");
      MT567.U0091.Elements.Add((SwiftDefinitionElement) MT567.U0094);
      MT567.U008E.Elements.Add((SwiftDefinitionElement) MT567.U0091);
      MT567.U0095 = new SwiftTagSequenceDefinition("SequenceA2a", "Reason");
      MT567.U0095.Mandatory = false;
      MT567.U0095.Multiple = true;
      MT567.U0096 = new SwiftTagDefinition("StartOfBlock_A2a_16R", "Start Of Block");
      MT567.U0096.TagName = ":16R:REAS";
      MT567.U0097 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U0097.Mandatory = false;
      MT567.U0096.Elements.Add((SwiftDefinitionElement) MT567.U0097);
      MT567.U0095.Elements.Add((SwiftDefinitionElement) MT567.U0096);
      MT567.U0098 = new SwiftTagDefinition("ReasonCode_A2a_24B", "Reason Code");
      MT567.U0098.TagName = ":24B::";
      MT567.U0099 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0098.Elements.Add((SwiftDefinitionElement) MT567.U0099);
      MT567.U009A = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0098.Elements.Add((SwiftDefinitionElement) MT567.U009A);
      MT567.U009B = new SwiftTagSubItemDefinition("ReasonCode", "Reason Code");
      MT567.U0098.Elements.Add((SwiftDefinitionElement) MT567.U009B);
      MT567.U0095.Elements.Add((SwiftDefinitionElement) MT567.U0098);
      MT567.U009C = new SwiftTagDefinition("Narrative_A2a_70D", "Reason Narrative");
      MT567.U009C.TagName = ":70D::";
      MT567.U009C.Mandatory = false;
      MT567.U009D = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U009C.Elements.Add((SwiftDefinitionElement) MT567.U009D);
      MT567.U009E = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT567.U009C.Elements.Add((SwiftDefinitionElement) MT567.U009E);
      MT567.U0095.Elements.Add((SwiftDefinitionElement) MT567.U009C);
      MT567.U009F = new SwiftTagDefinition("EndOfBlock_A2a_16S", "End Of Block");
      MT567.U009F.TagName = ":16S:REAS";
      MT567.U0001U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U0001U0002.Mandatory = false;
      MT567.U009F.Elements.Add((SwiftDefinitionElement) MT567.U0001U0002);
      MT567.U0095.Elements.Add((SwiftDefinitionElement) MT567.U009F);
      MT567.U008E.Elements.Add((SwiftDefinitionElement) MT567.U0095);
      MT567.U0002U0002 = new SwiftTagDefinition("EndOfBlock_A2_16S", "End Of Block");
      MT567.U0002U0002.TagName = ":16S:STAT";
      MT567.U0003U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U0003U0002.Mandatory = false;
      MT567.U0002U0002.Elements.Add((SwiftDefinitionElement) MT567.U0003U0002);
      MT567.U008E.Elements.Add((SwiftDefinitionElement) MT567.U0002U0002);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U008E);
      MT567.U0004U0002 = new SwiftTagDefinition("EndOfBlock_A_16S", "End Of Block");
      MT567.U0004U0002.TagName = ":16S:GENL";
      MT567.U0005U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U0005U0002.Mandatory = false;
      MT567.U0004U0002.Elements.Add((SwiftDefinitionElement) MT567.U0005U0002);
      MT567.U0002.Elements.Add((SwiftDefinitionElement) MT567.U0004U0002);
      MT567.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT567.U0002);
      MT567.U0006U0002 = new SwiftTagSequenceDefinition("SequenceB", "Corporate Action Details");
      MT567.U0006U0002.Mandatory = false;
      MT567.U0007U0002 = new SwiftTagDefinition("StartOfBlock_B_16R", "Start Of Block");
      MT567.U0007U0002.TagName = ":16R:CADETL";
      MT567.U0008U0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U0008U0002.Mandatory = false;
      MT567.U0007U0002.Elements.Add((SwiftDefinitionElement) MT567.U0008U0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0007U0002);
      MT567.U000EU0002 = new SwiftTagDefinition("NumberIdentification_B_13A", "CA Option Number");
      MT567.U000EU0002.TagName = ":13A::";
      MT567.U000EU0002.Mandatory = false;
      MT567.U000FU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U000EU0002.Elements.Add((SwiftDefinitionElement) MT567.U000FU0002);
      MT567.U0010U0002 = new SwiftTagSubItemDefinition("NumberId", "Number Id");
      MT567.U000EU0002.Elements.Add((SwiftDefinitionElement) MT567.U0010U0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U000EU0002);
      MT567.U0011U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0011U0002.Mandatory = false;
      MT567.U0011U0002.Multiple = true;
      MT567.U0012U0002 = new SwiftTagDefinition("Indicator_B_22H", "Corporate Action Option Code");
      MT567.U0012U0002.TagName = ":22H::";
      MT567.U0013U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0012U0002.Elements.Add((SwiftDefinitionElement) MT567.U0013U0002);
      MT567.U0014U0002 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT567.U0012U0002.Elements.Add((SwiftDefinitionElement) MT567.U0014U0002);
      MT567.U0011U0002.Elements.Add((SwiftDefinitionElement) MT567.U0012U0002);
      MT567.U0015U0002 = new SwiftTagDefinition("Indicator_B_22F", "Corporate Action Option Code");
      MT567.U0015U0002.TagName = ":22F::";
      MT567.U0016U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0015U0002.Elements.Add((SwiftDefinitionElement) MT567.U0016U0002);
      MT567.U0017U0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0015U0002.Elements.Add((SwiftDefinitionElement) MT567.U0017U0002);
      MT567.U0018U0002 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT567.U0015U0002.Elements.Add((SwiftDefinitionElement) MT567.U0018U0002);
      MT567.U0011U0002.Elements.Add((SwiftDefinitionElement) MT567.U0015U0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0011U0002);
      MT567.U0019U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0019U0002.Mandatory = false;
      MT567.U0019U0002.Multiple = true;
      MT567.U001AU0002 = new SwiftTagDefinition("Party_B_95P", "Party");
      MT567.U001AU0002.TagName = ":95P::";
      MT567.U001BU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U001AU0002.Elements.Add((SwiftDefinitionElement) MT567.U001BU0002);
      MT567.U001CU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT567.U001AU0002.Elements.Add((SwiftDefinitionElement) MT567.U001CU0002);
      MT567.U0019U0002.Elements.Add((SwiftDefinitionElement) MT567.U001AU0002);
      MT567.U001DU0002 = new SwiftTagDefinition("Party_B_95R", "Party");
      MT567.U001DU0002.TagName = ":95R::";
      MT567.U001EU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U001DU0002.Elements.Add((SwiftDefinitionElement) MT567.U001EU0002);
      MT567.U001FU0002 = new SwiftTagSubItemDefinition("DataSourceScheme", "Data Source Scheme");
      MT567.U001DU0002.Elements.Add((SwiftDefinitionElement) MT567.U001FU0002);
      MT567.U007FU0002 = new SwiftTagSubItemDefinition("ProprietaryCode", "Proprietary Code");
      MT567.U001DU0002.Elements.Add((SwiftDefinitionElement) MT567.U007FU0002);
      MT567.U0019U0002.Elements.Add((SwiftDefinitionElement) MT567.U001DU0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0019U0002);
      MT567.U0080U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0080U0002.Mandatory = false;
      MT567.U0080U0002.Multiple = true;
      MT567.U0081U0002 = new SwiftTagDefinition("Account_B_97A", "Account");
      MT567.U0081U0002.TagName = ":97A::";
      MT567.U0081U0002.Multiple = true;
      MT567.U0082U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0081U0002.Elements.Add((SwiftDefinitionElement) MT567.U0082U0002);
      MT567.U0083U0002 = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT567.U0081U0002.Elements.Add((SwiftDefinitionElement) MT567.U0083U0002);
      MT567.U0080U0002.Elements.Add((SwiftDefinitionElement) MT567.U0081U0002);
      MT567.U0084U0002 = new SwiftTagDefinition("Account_B_97E", "Account");
      MT567.U0084U0002.TagName = ":97E::";
      MT567.U0084U0002.Multiple = true;
      MT567.U0086U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0084U0002.Elements.Add((SwiftDefinitionElement) MT567.U0086U0002);
      MT567.U0087U0002 = new SwiftTagSubItemDefinition("InternationalBankAccountNumber", "International Bank Account Number");
      MT567.U0084U0002.Elements.Add((SwiftDefinitionElement) MT567.U0087U0002);
      MT567.U0080U0002.Elements.Add((SwiftDefinitionElement) MT567.U0084U0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0080U0002);
      MT567.U0088U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0088U0002.Mandatory = false;
      MT567.U0088U0002.Multiple = true;
      MT567.U0089U0002 = new SwiftTagDefinition("Place_B_94B", "Place of Safekeeping");
      MT567.U0089U0002.TagName = ":94B::";
      MT567.U008AU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0089U0002.Elements.Add((SwiftDefinitionElement) MT567.U008AU0002);
      MT567.U008BU0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT567.U0089U0002.Elements.Add((SwiftDefinitionElement) MT567.U008BU0002);
      MT567.U008CU0002 = new SwiftTagSubItemDefinition("PlaceCode", "Place Code");
      MT567.U0089U0002.Elements.Add((SwiftDefinitionElement) MT567.U008CU0002);
      MT567.U008DU0002 = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT567.U008DU0002.Mandatory = false;
      MT567.U008EU0002 = new SwiftTagSubItemDefinition("Narrative_94B", "Narrative");
      MT567.U008DU0002.Elements.Add((SwiftDefinitionElement) MT567.U008EU0002);
      MT567.U0089U0002.Elements.Add((SwiftDefinitionElement) MT567.U008DU0002);
      MT567.U0088U0002.Elements.Add((SwiftDefinitionElement) MT567.U0089U0002);
      MT567.U008FU0002 = new SwiftTagDefinition("Place_C_94C", "Place of Safekeeping");
      MT567.U008FU0002.TagName = ":94C::";
      MT567.U0090U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U008FU0002.Elements.Add((SwiftDefinitionElement) MT567.U0090U0002);
      MT567.U0091U0002 = new SwiftTagSubItemDefinition("CountryCode", "Country Code");
      MT567.U008FU0002.Elements.Add((SwiftDefinitionElement) MT567.U0091U0002);
      MT567.U0088U0002.Elements.Add((SwiftDefinitionElement) MT567.U008FU0002);
      MT567.U0092U0002 = new SwiftTagDefinition("Place_B_94F", "Place of Safekeeping");
      MT567.U0092U0002.TagName = ":94F::";
      MT567.U0093U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0092U0002.Elements.Add((SwiftDefinitionElement) MT567.U0093U0002);
      MT567.U0094U0002 = new SwiftTagSubItemDefinition("Place", "Place");
      MT567.U0095U0002 = new SwiftTagSubItemDefinition("Place_1", "Place");
      MT567.U0094U0002.Elements.Add((SwiftDefinitionElement) MT567.U0095U0002);
      MT567.U0096U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT567.U0094U0002.Elements.Add((SwiftDefinitionElement) MT567.U0096U0002);
      MT567.U0092U0002.Elements.Add((SwiftDefinitionElement) MT567.U0094U0002);
      MT567.U0088U0002.Elements.Add((SwiftDefinitionElement) MT567.U0092U0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0088U0002);
      MT567.U0097U0002 = new SwiftTagDefinition("IdentificationOfFinancialInstrument_B_35B", "Identification of the Financial Instrument");
      MT567.U0097U0002.TagName = ":35B:";
      MT567.U0097U0002.Mandatory = false;
      MT567.U0098U0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification of Security");
      MT567.U0098U0002.Mandatory = false;
      MT567.U0099U0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification of Security");
      MT567.U0098U0002.Elements.Add((SwiftDefinitionElement) MT567.U0099U0002);
      MT567.U0097U0002.Elements.Add((SwiftDefinitionElement) MT567.U0098U0002);
      MT567.U009AU0002 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description Of Security");
      MT567.U009AU0002.Mandatory = false;
      MT567.U0097U0002.Elements.Add((SwiftDefinitionElement) MT567.U009AU0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0097U0002);
      MT567.U009BU0002 = new SwiftTagDefinition("QuantityOfFinancialInstrument_B_36B", "Quantity of Financial Instrument");
      MT567.U009BU0002.TagName = ":36B::";
      MT567.U009BU0002.Mandatory = false;
      MT567.U009BU0002.Multiple = true;
      MT567.U009CU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U009BU0002.Elements.Add((SwiftDefinitionElement) MT567.U009CU0002);
      MT567.U009DU0002 = new SwiftTagSubItemDefinition("QuantityOfFinancialInstrument", "QuantityOfFinancialInstrument");
      MT567.U009EU0002 = new SwiftTagSubItemDefinition("QuantityTypeCode", "Quantity Type Code");
      MT567.U009DU0002.Elements.Add((SwiftDefinitionElement) MT567.U009EU0002);
      MT567.U009FU0002 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT567.U009DU0002.Elements.Add((SwiftDefinitionElement) MT567.U009FU0002);
      MT567.U009BU0002.Elements.Add((SwiftDefinitionElement) MT567.U009DU0002);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U009BU0002);
      MT567.U0001U0003 = new SwiftTagDefinition("Amount_B_19B", "Amount");
      MT567.U0001U0003.TagName = ":19B::";
      MT567.U0001U0003.Mandatory = false;
      MT567.U0001U0003.Multiple = true;
      MT567.U0002U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0001U0003.Elements.Add((SwiftDefinitionElement) MT567.U0002U0003);
      MT567.U0003U0003 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT567.U0004U0003 = new SwiftTagSubItemDefinition("CurrencyCode", "Currency Code");
      MT567.U0003U0003.Elements.Add((SwiftDefinitionElement) MT567.U0004U0003);
      MT567.U0005U0003 = new SwiftTagSubItemDefinition("Amount_1", "Amount");
      MT567.U0003U0003.Elements.Add((SwiftDefinitionElement) MT567.U0005U0003);
      MT567.U0001U0003.Elements.Add((SwiftDefinitionElement) MT567.U0003U0003);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0001U0003);
      MT567.U0006U0003 = new SwiftTagDefinition("Balance_B_93B", "Balance");
      MT567.U0006U0003.TagName = ":93B::";
      MT567.U0006U0003.Mandatory = false;
      MT567.U0006U0003.Multiple = true;
      MT567.U0007U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0006U0003.Elements.Add((SwiftDefinitionElement) MT567.U0007U0003);
      MT567.U0008U0003 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT567.U0006U0003.Elements.Add((SwiftDefinitionElement) MT567.U0008U0003);
      MT567.U000EU0003 = new SwiftTagSubItemDefinition("QuantityTypeCode", "Quantity Type Code");
      MT567.U0006U0003.Elements.Add((SwiftDefinitionElement) MT567.U000EU0003);
      MT567.U000FU0003 = new SwiftTagSubItemDefinition("SignBalance", "Sign Balance");
      MT567.U0006U0003.Elements.Add((SwiftDefinitionElement) MT567.U000FU0003);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0006U0003);
      MT567.U0010U0003 = new SwiftTagDefinition("EndOfBlock_B_16S", "End Of Block");
      MT567.U0010U0003.TagName = ":16S:CADETL";
      MT567.U0011U0003 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U0011U0003.Mandatory = false;
      MT567.U0010U0003.Elements.Add((SwiftDefinitionElement) MT567.U0011U0003);
      MT567.U0006U0002.Elements.Add((SwiftDefinitionElement) MT567.U0010U0003);
      MT567.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT567.U0006U0002);
      MT567.U0012U0003 = new SwiftTagSequenceDefinition("SequenceC", "Additional Information");
      MT567.U0012U0003.Mandatory = false;
      MT567.U0013U0003 = new SwiftTagDefinition("StartOfBlock_C_16R", "Start Of Block");
      MT567.U0013U0003.TagName = ":16R:ADDINFO";
      MT567.U0014U0003 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT567.U0014U0003.Mandatory = false;
      MT567.U0013U0003.Elements.Add((SwiftDefinitionElement) MT567.U0014U0003);
      MT567.U0012U0003.Elements.Add((SwiftDefinitionElement) MT567.U0013U0003);
      MT567.U0015U0003 = new SwiftTagDefinition("Narrative_C_70E", "Narrative");
      MT567.U0015U0003.TagName = ":70E::";
      MT567.U0015U0003.Mandatory = false;
      MT567.U0015U0003.Multiple = true;
      MT567.U0016U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0015U0003.Elements.Add((SwiftDefinitionElement) MT567.U0016U0003);
      MT567.U0017U0003 = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT567.U0015U0003.Elements.Add((SwiftDefinitionElement) MT567.U0017U0003);
      MT567.U0012U0003.Elements.Add((SwiftDefinitionElement) MT567.U0015U0003);
      MT567.U0018U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT567.U0018U0003.Mandatory = false;
      MT567.U0018U0003.Multiple = true;
      MT567.U0019U0003 = new SwiftTagDefinition("Party_C_95P", "Party");
      MT567.U0019U0003.TagName = ":95P::";
      MT567.U0019U0003.Multiple = true;
      MT567.U001AU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U0019U0003.Elements.Add((SwiftDefinitionElement) MT567.U001AU0003);
      MT567.U001BU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT567.U0019U0003.Elements.Add((SwiftDefinitionElement) MT567.U001BU0003);
      MT567.U0018U0003.Elements.Add((SwiftDefinitionElement) MT567.U0019U0003);
      MT567.U001CU0003 = new SwiftTagDefinition("Party_C_95R", "Party");
      MT567.U001CU0003.TagName = ":95R::";
      MT567.U001CU0003.Multiple = true;
      MT567.U001DU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U001CU0003.Elements.Add((SwiftDefinitionElement) MT567.U001DU0003);
      MT567.U001EU0003 = new SwiftTagSubItemDefinition("DataSourceScheme", "Data Source Scheme");
      MT567.U001CU0003.Elements.Add((SwiftDefinitionElement) MT567.U001EU0003);
      MT567.U001FU0003 = new SwiftTagSubItemDefinition("ProprietaryCode", "Proprietary Code");
      MT567.U001CU0003.Elements.Add((SwiftDefinitionElement) MT567.U001FU0003);
      MT567.U0018U0003.Elements.Add((SwiftDefinitionElement) MT567.U001CU0003);
      MT567.U007FU0003 = new SwiftTagDefinition("Party_C_95Q", "Party");
      MT567.U007FU0003.TagName = ":95Q::";
      MT567.U007FU0003.Multiple = true;
      MT567.U0080U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT567.U007FU0003.Elements.Add((SwiftDefinitionElement) MT567.U0080U0003);
      MT567.U0081U0003 = new SwiftTagSubItemDefinition("NameAndAddress_95Q", "Name and Address");
      MT567.U007FU0003.Elements.Add((SwiftDefinitionElement) MT567.U0081U0003);
      MT567.U0018U0003.Elements.Add((SwiftDefinitionElement) MT567.U007FU0003);
      MT567.U0012U0003.Elements.Add((SwiftDefinitionElement) MT567.U0018U0003);
      MT567.U0082U0003 = new SwiftTagDefinition("EndOfBlock_C_16S", "End Of Block");
      MT567.U0082U0003.TagName = ":16S:ADDINFO";
      MT567.U0083U0003 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT567.U0083U0003.Mandatory = false;
      MT567.U0082U0003.Elements.Add((SwiftDefinitionElement) MT567.U0083U0003);
      MT567.U0012U0003.Elements.Add((SwiftDefinitionElement) MT567.U0082U0003);
      MT567.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT567.U0012U0003);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT567.U0002;
        }
      }

      [Description("Start Of Block")]
      public Tag16R StartOfBlock_A_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0003);
        }
      }

      [Description("Start Of Block")]
      public Tag16R Tag16R_StartOfBlock_A
      {
        get
        {
          return this.StartOfBlock_A_16R;
        }
      }

      [Description("Reference")]
      public Tag20C[] Reference_A_20C
      {
        get
        {
          int index = -1;
          List<Tag20C> list = new List<Tag20C>();
          int count;
          do
          {
            ++index;
            Tag20C tag20C = new Tag20C((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0005);
            count = this.ListTags((SwiftElement) tag20C).Count;
            if (count > 0)
              list.Add(tag20C);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Reference")]
      public Tag20C[] Tag20C_Reference_A
      {
        get
        {
          return this.Reference_A_20C;
        }
      }

      [Description("Function of the Message")]
      public Tag23G FunctionOfTheMessage_A_23G
      {
        get
        {
          return new Tag23G((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0008);
        }
      }

      [Description("Function of the Message")]
      public Tag23G Tag23G_FunctionOfTheMessage_A
      {
        get
        {
          return this.FunctionOfTheMessage_A_23G;
        }
      }

      [Description("Corporate Action Event Indicator")]
      public Tag22F Indicator_A_22F
      {
        get
        {
          return new Tag22F((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0011);
        }
      }

      [Description("Corporate Action Event Indicator")]
      public Tag22F Tag22F_Indicator_A
      {
        get
        {
          return this.Indicator_A_22F;
        }
      }

      [Description("Preparation Date")]
      public Tag98A Date_A_98A
      {
        get
        {
          return new Tag98A((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0016);
        }
      }

      [Description("Preparation Date")]
      public Tag98A Tag98A_Date_A
      {
        get
        {
          return this.Date_A_98A;
        }
      }

      [Description("Preparation Date/Time")]
      public Tag98C DateTime_A_98C
      {
        get
        {
          return new Tag98C((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0019);
        }
      }

      [Description("Preparation Date/Time")]
      public Tag98C Tag98C_DateTime_A
      {
        get
        {
          return this.DateTime_A_98C;
        }
      }

      [Description("Linkages")]
      public MT567.SequenceAClass.SequenceA1Class[] SequenceA1
      {
        get
        {
          int index = -1;
          List<MT567.SequenceAClass.SequenceA1Class> list = new List<MT567.SequenceAClass.SequenceA1Class>();
          int count;
          do
          {
            ++index;
            MT567.SequenceAClass.SequenceA1Class sequenceA1Class = new MT567.SequenceAClass.SequenceA1Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceA1Class).Count;
            if (count > 0)
              list.Add(sequenceA1Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Status")]
      public MT567.SequenceAClass.SequenceA2Class[] SequenceA2
      {
        get
        {
          int index = -1;
          List<MT567.SequenceAClass.SequenceA2Class> list = new List<MT567.SequenceAClass.SequenceA2Class>();
          int count;
          do
          {
            ++index;
            MT567.SequenceAClass.SequenceA2Class sequenceA2Class = new MT567.SequenceAClass.SequenceA2Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceA2Class).Count;
            if (count > 0)
              list.Add(sequenceA2Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("End Of Block")]
      public Tag16S EndOfBlock_A_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0004U0002);
        }
      }

      [Description("End Of Block")]
      public Tag16S Tag16S_EndOfBlock_A
      {
        get
        {
          return this.EndOfBlock_A_16S;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag20C AddReference_A_20C()
      {
        return new Tag20C((SwiftElement) this, this.Reference_A_20C.Length, (SwiftDefinitionElement) MT567.U0005)
        {
          Value = string.Empty
        };
      }

      public void RemoveReference_A_20C(Tag20C tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public MT567.SequenceAClass.SequenceA1Class AddSequenceA1()
      {
        return new MT567.SequenceAClass.SequenceA1Class((SwiftElement) this, this.SequenceA1.Length, true);
      }

      public void RemoveSequenceA1(MT567.SequenceAClass.SequenceA1Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public MT567.SequenceAClass.SequenceA2Class AddSequenceA2()
      {
        return new MT567.SequenceAClass.SequenceA2Class((SwiftElement) this, this.SequenceA2.Length, true);
      }

      public void RemoveSequenceA2(MT567.SequenceAClass.SequenceA2Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public class SequenceA1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT567.U001E;
          }
        }

        [Description("Start Of Block")]
        public Tag16R StartOfBlock_A1_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U001F);
          }
        }

        [Description("Start Of Block")]
        public Tag16R Tag16R_StartOfBlock_A1
        {
          get
          {
            return this.StartOfBlock_A1_16R;
          }
        }

        [Description("Linked Message")]
        public Tag13A NumberIdentification_A1_13A
        {
          get
          {
            return new Tag13A((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0081);
          }
        }

        [Description("Linked Message")]
        public Tag13A Tag13A_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13A;
          }
        }

        [Description("Linked Message")]
        public Tag13B NumberIdentification_A1_13B
        {
          get
          {
            return new Tag13B((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0084);
          }
        }

        [Description("Linked Message")]
        public Tag13B Tag13B_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13B;
          }
        }

        [Description("Reference")]
        public Tag20C Reference_A1_20C
        {
          get
          {
            return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0089);
          }
        }

        [Description("Reference")]
        public Tag20C Tag20C_Reference_A1
        {
          get
          {
            return this.Reference_A1_20C;
          }
        }

        [Description("End Of Block")]
        public Tag16S EndOfBlock_A1_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U008C);
          }
        }

        [Description("End Of Block")]
        public Tag16S Tag16S_EndOfBlock_A1
        {
          get
          {
            return this.EndOfBlock_A1_16S;
          }
        }

        internal SequenceA1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }

      public class SequenceA2Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT567.U008E;
          }
        }

        [Description("Start Of Block")]
        public Tag16R StartOfBlock_A2_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U008F);
          }
        }

        [Description("Start Of Block")]
        public Tag16R Tag16R_StartOfBlock_A2
        {
          get
          {
            return this.StartOfBlock_A2_16R;
          }
        }

        [Description("Status Code")]
        public Tag25D StatusCode_A2_25D
        {
          get
          {
            return new Tag25D((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0091);
          }
        }

        [Description("Status Code")]
        public Tag25D Tag25D_StatusCode_A2
        {
          get
          {
            return this.StatusCode_A2_25D;
          }
        }

        [Description("Reason")]
        public MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass[] SequenceA2a
        {
          get
          {
            int index = -1;
            List<MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass> list = new List<MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass>();
            int count;
            do
            {
              ++index;
              MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass sequenceA2aClass = new MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass((SwiftElement) this, index, false);
              count = this.ListTags((SwiftElement) sequenceA2aClass).Count;
              if (count > 0)
                list.Add(sequenceA2aClass);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("End Of Block")]
        public Tag16S EndOfBlock_A2_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0002U0002);
          }
        }

        [Description("End Of Block")]
        public Tag16S Tag16S_EndOfBlock_A2
        {
          get
          {
            return this.EndOfBlock_A2_16S;
          }
        }

        internal SequenceA2Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }

        public MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass AddSequenceA2a()
        {
          return new MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass((SwiftElement) this, this.SequenceA2a.Length, true);
        }

        public void RemoveSequenceA2a(MT567.SequenceAClass.SequenceA2Class.SequenceA2aClass sequence)
        {
          foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
            this.RemoveTag(tag);
        }

        public class SequenceA2aClass : SwiftTagSequence
        {
          internal override SwiftDefinitionElement Definition
          {
            get
            {
              return (SwiftDefinitionElement) MT567.U0095;
            }
          }

          [Description("Start Of Block")]
          public Tag16R StartOfBlock_A2a_16R
          {
            get
            {
              return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0096);
            }
          }

          [Description("Start Of Block")]
          public Tag16R Tag16R_StartOfBlock_A2a
          {
            get
            {
              return this.StartOfBlock_A2a_16R;
            }
          }

          [Description("Reason Code")]
          public Tag24B ReasonCode_A2a_24B
          {
            get
            {
              return new Tag24B((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0098);
            }
          }

          [Description("Reason Code")]
          public Tag24B Tag24B_ReasonCode_A2a
          {
            get
            {
              return this.ReasonCode_A2a_24B;
            }
          }

          [Description("Reason Narrative")]
          public Tag70D Narrative_A2a_70D
          {
            get
            {
              return new Tag70D((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U009C);
            }
          }

          [Description("Reason Narrative")]
          public Tag70D Tag70D_Narrative_A2a
          {
            get
            {
              return this.Narrative_A2a_70D;
            }
          }

          [Description("End Of Block")]
          public Tag16S EndOfBlock_A2a_16S
          {
            get
            {
              return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U009F);
            }
          }

          [Description("End Of Block")]
          public Tag16S Tag16S_EndOfBlock_A2a
          {
            get
            {
              return this.EndOfBlock_A2a_16S;
            }
          }

          internal SequenceA2aClass(SwiftElement parent, int index, bool createTags)
            : base(parent, index, createTags)
          {
          }
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT567.U0006U0002;
        }
      }

      [Description("Start Of Block")]
      public Tag16R StartOfBlock_B_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0007U0002);
        }
      }

      [Description("Start Of Block")]
      public Tag16R Tag16R_StartOfBlock_B
      {
        get
        {
          return this.StartOfBlock_B_16R;
        }
      }

      [Description("CA Option Number")]
      public Tag13A NumberIdentification_B_13A
      {
        get
        {
          return new Tag13A((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U000EU0002);
        }
      }

      [Description("CA Option Number")]
      public Tag13A Tag13A_NumberIdentification_B
      {
        get
        {
          return this.NumberIdentification_B_13A;
        }
      }

      [Description("Corporate Action Option Code")]
      public MT567.SequenceBClass.Tag22H Indicator_B_22H
      {
        get
        {
          return new MT567.SequenceBClass.Tag22H((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0012U0002);
        }
      }

      [Description("Corporate Action Option Code")]
      public MT567.SequenceBClass.Tag22H Tag22H_Indicator_B
      {
        get
        {
          return this.Indicator_B_22H;
        }
      }

      [Description("Corporate Action Option Code")]
      public Tag22F Indicator_B_22F
      {
        get
        {
          return new Tag22F((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0015U0002);
        }
      }

      [Description("Corporate Action Option Code")]
      public Tag22F Tag22F_Indicator_B
      {
        get
        {
          return this.Indicator_B_22F;
        }
      }

      [Description("Party")]
      public Tag95P Party_B_95P
      {
        get
        {
          return new Tag95P((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U001AU0002);
        }
      }

      [Description("Party")]
      public Tag95P Tag95P_Party_B
      {
        get
        {
          return this.Party_B_95P;
        }
      }

      [Description("Party")]
      public Tag95R Party_B_95R
      {
        get
        {
          return new Tag95R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U001DU0002);
        }
      }

      [Description("Party")]
      public Tag95R Tag95R_Party_B
      {
        get
        {
          return this.Party_B_95R;
        }
      }

      [Description("Account")]
      public Tag97A[] Account_B_97A
      {
        get
        {
          int index = -1;
          List<Tag97A> list = new List<Tag97A>();
          int count;
          do
          {
            ++index;
            Tag97A tag97A = new Tag97A((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0081U0002);
            count = this.ListTags((SwiftElement) tag97A).Count;
            if (count > 0)
              list.Add(tag97A);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Account")]
      public Tag97A[] Tag97A_Account_B
      {
        get
        {
          return this.Account_B_97A;
        }
      }

      [Description("Account")]
      public Tag97E[] Account_B_97E
      {
        get
        {
          int index = -1;
          List<Tag97E> list = new List<Tag97E>();
          int count;
          do
          {
            ++index;
            Tag97E tag97E = new Tag97E((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0084U0002);
            count = this.ListTags((SwiftElement) tag97E).Count;
            if (count > 0)
              list.Add(tag97E);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Account")]
      public Tag97E[] Tag97E_Account_B
      {
        get
        {
          return this.Account_B_97E;
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94B Place_B_94B
      {
        get
        {
          return new Tag94B((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0089U0002);
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94B Tag94B_Place_B
      {
        get
        {
          return this.Place_B_94B;
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94C Place_C_94C
      {
        get
        {
          return new Tag94C((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U008FU0002);
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94C Tag94C_Place_C
      {
        get
        {
          return this.Place_C_94C;
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94F Place_B_94F
      {
        get
        {
          return new Tag94F((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0092U0002);
        }
      }

      [Description("Place of Safekeeping")]
      public Tag94F Tag94F_Place_B
      {
        get
        {
          return this.Place_B_94F;
        }
      }

      [Description("Identification of the Financial Instrument")]
      public Tag35B IdentificationOfFinancialInstrument_B_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0097U0002);
        }
      }

      [Description("Identification of the Financial Instrument")]
      public Tag35B Tag35B_IdentificationOfFinancialInstrument_B
      {
        get
        {
          return this.IdentificationOfFinancialInstrument_B_35B;
        }
      }

      [Description("Quantity of Financial Instrument")]
      public Tag36B[] QuantityOfFinancialInstrument_B_36B
      {
        get
        {
          int index = -1;
          List<Tag36B> list = new List<Tag36B>();
          int count;
          do
          {
            ++index;
            Tag36B tag36B = new Tag36B((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U009BU0002);
            count = this.ListTags((SwiftElement) tag36B).Count;
            if (count > 0)
              list.Add(tag36B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Quantity of Financial Instrument")]
      public Tag36B[] Tag36B_QuantityOfFinancialInstrument_B
      {
        get
        {
          return this.QuantityOfFinancialInstrument_B_36B;
        }
      }

      [Description("Amount")]
      public Tag19B[] Amount_B_19B
      {
        get
        {
          int index = -1;
          List<Tag19B> list = new List<Tag19B>();
          int count;
          do
          {
            ++index;
            Tag19B tag19B = new Tag19B((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0001U0003);
            count = this.ListTags((SwiftElement) tag19B).Count;
            if (count > 0)
              list.Add(tag19B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Amount")]
      public Tag19B[] Tag19B_Amount_B
      {
        get
        {
          return this.Amount_B_19B;
        }
      }

      [Description("Balance")]
      public Tag93B[] Balance_B_93B
      {
        get
        {
          int index = -1;
          List<Tag93B> list = new List<Tag93B>();
          int count;
          do
          {
            ++index;
            Tag93B tag93B = new Tag93B((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0006U0003);
            count = this.ListTags((SwiftElement) tag93B).Count;
            if (count > 0)
              list.Add(tag93B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Balance")]
      public Tag93B[] Tag93B_Balance_B
      {
        get
        {
          return this.Balance_B_93B;
        }
      }

      [Description("End Of Block")]
      public Tag16S EndOfBlock_B_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0010U0003);
        }
      }

      [Description("End Of Block")]
      public Tag16S Tag16S_EndOfBlock_B
      {
        get
        {
          return this.EndOfBlock_B_16S;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag97A AddAccount_B_97A()
      {
        return new Tag97A((SwiftElement) this, this.Account_B_97A.Length, (SwiftDefinitionElement) MT567.U0081U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveAccount_B_97A(Tag97A tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag97E AddAccount_B_97E()
      {
        return new Tag97E((SwiftElement) this, this.Account_B_97E.Length, (SwiftDefinitionElement) MT567.U0084U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveAccount_B_97E(Tag97E tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag36B AddQuantityOfFinancialInstrument_B_36B()
      {
        return new Tag36B((SwiftElement) this, this.QuantityOfFinancialInstrument_B_36B.Length, (SwiftDefinitionElement) MT567.U009BU0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveQuantityOfFinancialInstrument_B_36B(Tag36B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag19B AddAmount_B_19B()
      {
        return new Tag19B((SwiftElement) this, this.Amount_B_19B.Length, (SwiftDefinitionElement) MT567.U0001U0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveAmount_B_19B(Tag19B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag93B AddBalance_B_93B()
      {
        return new Tag93B((SwiftElement) this, this.Balance_B_93B.Length, (SwiftDefinitionElement) MT567.U0006U0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveBalance_B_93B(Tag93B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public class Tag22H : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("22H", value);
          }
        }

        internal Tag22H(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT567.U0012U0003;
        }
      }

      [Description("Start Of Block")]
      public Tag16R StartOfBlock_C_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0013U0003);
        }
      }

      [Description("Start Of Block")]
      public Tag16R Tag16R_StartOfBlock_C
      {
        get
        {
          return this.StartOfBlock_C_16R;
        }
      }

      [Description("Narrative")]
      public Tag70E[] Narrative_C_70E
      {
        get
        {
          int index = -1;
          List<Tag70E> list = new List<Tag70E>();
          int count;
          do
          {
            ++index;
            Tag70E tag70E = new Tag70E((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0015U0003);
            count = this.ListTags((SwiftElement) tag70E).Count;
            if (count > 0)
              list.Add(tag70E);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Narrative")]
      public Tag70E[] Tag70E_Narrative_C
      {
        get
        {
          return this.Narrative_C_70E;
        }
      }

      [Description("Party")]
      public Tag95P[] Party_C_95P
      {
        get
        {
          int index = -1;
          List<Tag95P> list = new List<Tag95P>();
          int count;
          do
          {
            ++index;
            Tag95P tag95P = new Tag95P((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U0019U0003);
            count = this.ListTags((SwiftElement) tag95P).Count;
            if (count > 0)
              list.Add(tag95P);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95P[] Tag95P_Party_C
      {
        get
        {
          return this.Party_C_95P;
        }
      }

      [Description("Party")]
      public Tag95R[] Party_C_95R
      {
        get
        {
          int index = -1;
          List<Tag95R> list = new List<Tag95R>();
          int count;
          do
          {
            ++index;
            Tag95R tag95R = new Tag95R((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U001CU0003);
            count = this.ListTags((SwiftElement) tag95R).Count;
            if (count > 0)
              list.Add(tag95R);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95R[] Tag95R_Party_C
      {
        get
        {
          return this.Party_C_95R;
        }
      }

      [Description("Party")]
      public Tag95Q[] Party_C_95Q
      {
        get
        {
          int index = -1;
          List<Tag95Q> list = new List<Tag95Q>();
          int count;
          do
          {
            ++index;
            Tag95Q tag95Q = new Tag95Q((SwiftElement) this, index, (SwiftDefinitionElement) MT567.U007FU0003);
            count = this.ListTags((SwiftElement) tag95Q).Count;
            if (count > 0)
              list.Add(tag95Q);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95Q[] Tag95Q_Party_C
      {
        get
        {
          return this.Party_C_95Q;
        }
      }

      [Description("End Of Block")]
      public Tag16S EndOfBlock_C_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT567.U0082U0003);
        }
      }

      [Description("End Of Block")]
      public Tag16S Tag16S_EndOfBlock_C
      {
        get
        {
          return this.EndOfBlock_C_16S;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag70E AddNarrative_C_70E()
      {
        return new Tag70E((SwiftElement) this, this.Narrative_C_70E.Length, (SwiftDefinitionElement) MT567.U0015U0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveNarrative_C_70E(Tag70E tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95P AddParty_C_95P()
      {
        return new Tag95P((SwiftElement) this, this.Party_C_95P.Length, (SwiftDefinitionElement) MT567.U0019U0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95P(Tag95P tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95R AddParty_C_95R()
      {
        return new Tag95R((SwiftElement) this, this.Party_C_95R.Length, (SwiftDefinitionElement) MT567.U001CU0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95R(Tag95R tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95Q AddParty_C_95Q()
      {
        return new Tag95Q((SwiftElement) this, this.Party_C_95Q.Length, (SwiftDefinitionElement) MT567.U007FU0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95Q(Tag95Q tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }
  }
}
